import axios from '@/libs/request/axios'

export const addAffiliationInfo = (params) => {
    return axios.request({
        url: '/channel/channelAffiliated/addAffiliationInfo',
        data:params,
        method: 'post'
    })
};
export const addNetCarAffiliationInfo = (params) => {
    return axios.request({
        url: '/channel/channelAffiliated/addNetCarAffiliationInfo',
        data:params,
        method: 'post'
    })
};
export const channelList = (params) => {
    return axios.request({
        url: '/channel/channelOnline/getByCondition',
        data:params,
        method: 'post'
    })
};
export const upDateAffiliationInfo = (params) => {
    return axios.request({
        url: '/channel/channelAffiliated/upDateAffiliationInfo',
        data:params,
        method: 'post'
    })
};
export const upDateStopAffiliationInfo = (params) => {
    return axios.request({
        url: '/channel/channelAffiliated/upDateStopAffiliationInfo',
        data:params,
        method: 'post'
    })
};
export const upDateAffiliationRelInfo = (params) => {
    return axios.request({
        url: '/channel/channelAffiliated/upDateAffiliationRelInfo',
        data:params,
        method: 'post'
    })
};
export function saveBlack(obj) {
    return axios.request({
        url: '/channel/black/save',
        method: 'POST',
        data: obj
    })
};
export function checkBlack(obj) {
    return axios.request({
        url: '/channel/black/checkBlack',
        method: 'POST',
        data: obj
    })
};

export const getAffiliationRelInfoById = (param) => {
    return axios.request({
        url: '/channel/channelAffiliated/getAffiliationRelInfoById',
        method: 'post',
        data:param
    });
}
export const getAffiliationInfoById = (param) => {
    return axios.request({
        url: '/channel/channelAffiliated/getAffiliationInfoById',
        method: 'post',
        data:param
    });
}
export const getAffiliationInfo = (param) => {
    return axios.request({
        url: '/channel/channelAffiliated/getAffiliationInfo',
        method: 'post',
        data:param
    });
}
